public class TestFunction{

    public static void main (String[] args) {
        int start = -180, stop = 180, step = 10;


        for(int i = start; i <= stop;i += step){
            System.out.println(i + " -> " + generatedFunction(i));
        }
    }
    // insert generatedFunction here
    public static int generatedFunction(int x){
	double a[] = {
		0.0,
		1.7312926759453902,
		0.0,
		-6.764138571311619E-5,
		0.0,
		-5.320029477925949E-9,
		0.0,
		8.045124512530352E-13,
		0.0,
		-4.0257509812328454E-17,
		0.0,
		6.454449885886702E-22,
		0.0
	};
	double tempY = 0;
	int y = 0;
	int nbrCoff = a.length;

	for(int i = 0; i < nbrCoff; i++){
		tempY += a[i] * Math.pow(x, i);
	}

	y = (int)Math.round(tempY);
	return y;
}

}